import request from '@/utils/request.js'
import apis from '@/utils/api'
/**
 * @param {Object} params
 * 可视化图表
 */
export function getGoodsCharts(params) {
    return request.globalRequest(apis.getGoodsCharts, 'POST', params)
}
export function getSalesCharts(params) {
    return request.globalRequest(apis.getSalesCharts, 'POST', params)
}
export function getPurchaseCharts(params) {
    return request.globalRequest(apis.getPurchaseCharts, 'POST', params)
}
export function getPayCharts(params) {
    return request.globalRequest(apis.getPayCharts, 'POST', params)
}
export function getReturnCharts(params) {
    return request.globalRequest(apis.getReturnCharts, 'POST', params)
}

export function getGoodsByNode(params) {
    return request.globalRequest(apis.getGoodsByNode, 'POST', params)
}
export function getSalesByNode(params) {
    return request.globalRequest(apis.getSalesByNode, 'POST', params)
}

export function getPurchaseByNode(params) {
    return request.globalRequest(apis.getPurchaseByNode, 'POST', params)
}

export function getPayByNode(params) {
    return request.globalRequest(apis.getPayByNode, 'POST', params)
}
export function getReturnByNode(params) {
    return request.globalRequest(apis.getReturnByNode, 'POST', params)
}
export function getPurchaseByOrder(params) {
    return request.globalRequest(apis.getPurchaseByOrder, 'POST', params)
}


export default {
	getGoodsCharts,
	getSalesCharts,
	getPurchaseCharts,
	getPayCharts,
	getReturnCharts,
	getGoodsByNode,
	getSalesByNode,
	getPurchaseByNode,
	getPayByNode,
	getReturnByNode,
	getPurchaseByOrder,
}